home *** CD-ROM | disk | FTP | other *** search
/ Chip: Special XP & Vista / Chip Spesial XP & Vista.iso / 1_Audio_Video / MediaCoder / MediaCoder-0.6.1.4098.exe / htdocs / sys / summary.xsl < prev    next >
Extensible Markup Language  |  2007-10-27  |  4KB  |  155 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4. <xsl:output method="xml" encoding="utf-8" doctype-public="-//MOZILLA//DTD XUL V1.0//EN"/>
  5.  
  6. <xsl:template match="/Root">
  7.  
  8. <window xmlns:html="http://www.w3.org/1999/xhtml"
  9.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  10.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         style="background:none"
  12.         >
  13.  
  14.  
  15. <hbox>
  16.  
  17. <vbox width="360">
  18. <groupbox>
  19. <caption label="System Summary"></caption>
  20.   <grid>
  21.     <columns>
  22.       <column class="entry_row"/>
  23.       <column flex="1"/>
  24.     </columns>
  25.     <rows>
  26.       <row>
  27.         <label>System:</label>
  28.         <label><xsl:value-of select="Software/Item[@name='Computer System']/SystemType"/></label>
  29.       </row>
  30.       <row>
  31.         <label>CPU:</label>
  32.         <label><xsl:value-of select="Hardware/Item[@name='Processors']/Element/Name"/></label>
  33.       </row>
  34.       <row>
  35.         <label>CPU Cores:</label>
  36.         <label><xsl:value-of select="Software/Item[@name='Computer System']/NumberOfProcessors"/></label>
  37.       </row>
  38.       <row>
  39.         <label>Main Board:</label>
  40.         <label><xsl:value-of select="Hardware/Item[@name='Base board']/Product"/></label>
  41.       </row>
  42.       <row>
  43.         <label>Memory:</label>
  44.         <label><xsl:value-of select="Software/Item[@name='Computer System']/TotalPhysicalMemory"/> Bytes</label>
  45.       </row>
  46.       <row>
  47.         <label>OS:</label>
  48.         <label><xsl:value-of select="Software/Item[@name='Operating System']/Caption"/></label>
  49.       </row>
  50.     </rows>
  51.   </grid>
  52. </groupbox>
  53. <spacer height="3"/>
  54. <groupbox>
  55. <caption label="MediaCoder Platform"></caption>
  56. <vbox id="appinfo"/>
  57. </groupbox>
  58. </vbox>
  59.  
  60. <vbox width="320">
  61. <groupbox flex="1">
  62. <caption>
  63.   <menulist oncommand="parentNode.nextSibling.selectedIndex=selectedIndex">
  64.     <menupopup>
  65.       <xsl:for-each select="Hardware/Item[@name='Processors']/Element">
  66.       <menuitem>
  67.           <xsl:attribute name="label"><xsl:value-of select="DeviceID"/></xsl:attribute>
  68.       </menuitem>
  69.       </xsl:for-each>
  70.     </menupopup>
  71.   </menulist>  
  72. </caption>
  73. <deck>
  74. <xsl:for-each select="Hardware/Item[@name='Processors']/Element">
  75.   <grid>
  76.     <columns>
  77.       <column class="entry_row"/>
  78.       <column flex="1"/>
  79.     </columns>
  80.     <rows>
  81.       <row>
  82.         <label>Family:</label>
  83.         <label><xsl:value-of select="Caption"/></label>
  84.       </row>
  85.       <row>
  86.         <label>Clock:</label>
  87.         <label><xsl:value-of select="CurrentClockSpeed"/> Mhz</label>
  88.       </row>
  89.     </rows>
  90.   </grid>
  91. </xsl:for-each>
  92. </deck>
  93. </groupbox>
  94.  
  95. <groupbox>
  96. <caption label="Motherboard Board"/>
  97.   <grid>
  98.     <columns>
  99.       <column class="entry_row"/>
  100.       <column flex="1"/>
  101.     </columns>
  102.     <rows>
  103.       <row>
  104.         <label>Vendor:</label>
  105.         <label><xsl:value-of select="Hardware/Item[@name='Base board']/Manufacturer"/></label>
  106.       </row>
  107.       <row>
  108.         <label>BIOS:</label>
  109.         <label><xsl:value-of select="Hardware/Item[@name='BIOS']/Name"/></label>
  110.       </row>
  111.     </rows>
  112.   </grid>
  113. </groupbox>
  114.  
  115. <groupbox>
  116. <caption>
  117.   <menulist oncommand="parentNode.nextSibling.selectedIndex=selectedIndex">
  118.     <menupopup>
  119.       <xsl:for-each select="Hardware/Item[@name='Physical Memory Banks']/Element">
  120.       <menuitem>
  121.           <xsl:attribute name="label"><xsl:value-of select="BankLabel"/></xsl:attribute>
  122.       </menuitem>
  123.       </xsl:for-each>
  124.     </menupopup>
  125.   </menulist>  
  126. </caption>
  127. <deck>
  128. <xsl:for-each select="Hardware/Item[@name='Physical Memory Banks']/Element">
  129.   <grid>
  130.     <columns>
  131.       <column class="entry_row"/>
  132.       <column flex="1"/>
  133.     </columns>
  134.     <rows>
  135.       <row>
  136.         <label>Capacity:</label>
  137.         <label><xsl:value-of select="Capacity"/> Bytes</label>
  138.       </row>
  139.       <row>
  140.         <label>Speed:</label>
  141.         <label><xsl:value-of select="Speed"/> MHz</label>
  142.       </row>
  143.     </rows>
  144.   </grid>
  145. </xsl:for-each>
  146. </deck>
  147. </groupbox>
  148. </vbox>
  149.  
  150. </hbox>
  151. </window>
  152.  
  153. </xsl:template>
  154.  
  155. </xsl:stylesheet>